package com.xuelang.pipeline.app.resource;

import com.xuelang.pipeline.app.resource.impl.ConfigMapServiceFallbackImpl;
import com.xuelang.pipeline.app.resource.request.ConfigMapRequest;
import com.xuelang.pipeline.client.common.result.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author liuyuan.ly
 * @since 2024/7/23 14:59
 */
@FeignClient(name = "configmap-service", url = "${feign.rpc.workerService}", fallbackFactory = ConfigMapServiceFallbackImpl.class)
public interface ConfigMapService {

    @PostMapping(value = "/configmap/saveOrUpdate", produces = "application/json;charset=utf-8")
    ApiResult<Boolean> saveOrUpdate(ConfigMapRequest request);
}
